package com.yvtian.om.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yvtian.om.pojo.OmOrderShopEntity;
import com.yvtian.om.dao.OmOrderShopMapper;
import com.yvtian.om.service.OmOrderShopService;
import org.springframework.stereotype.Service;

/**
 * (om_order_shop)表服务实现类
 *
 * @author long
 * @since 2024-05-27 08:58:05
 */
@Service("omOrderShopService")
public class OmOrderShopServiceImpl extends ServiceImpl<OmOrderShopMapper, OmOrderShopEntity> implements OmOrderShopService {

    @Override
    public IPage<OmOrderShopEntity> findByPage(Page<OmOrderShopEntity> page, OmOrderShopEntity omOrderShopEntity) {
        LambdaQueryWrapper<OmOrderShopEntity> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OmOrderShopEntity::getOrderCode,omOrderShopEntity.getOrderCode());
        return this.page(page, queryWrapper);
    }
}

